package com.hxy.hrm.client;

import com.hxy.hrm.doc.CourseDoc;
import com.hxy.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/courseDoc")
@FeignClient(value = "HRM-SEARCH",fallbackFactory =CourseDocClientFallbackFactory.class)
public interface CourseDocClient {
    //批量添加
    @PostMapping("/add")
    AjaxResult batchAdd(@RequestBody List<CourseDoc> courseDocs);

    //批量删除
    @PostMapping("/del")
    AjaxResult batchDel(@RequestBody List<Long> ids);
}